﻿@model LocalPasswordModel

@using (Html.BeginForm("Index", "Manage")) {
    @Html.AntiForgeryToken()
    @Html.ValidationSummary(true)
    
    <section>
        <fieldset>
            <legend>Change password form</legend>
            <div class="k-block">
                <div class="k-header k-state-selected">Change password form</div>  
                <div class="k-block k-info-colored">You're logged in as <strong>@User.Identity.Name</strong>.</div>          

                <div>
                    @Html.LabelFor(m => m.OldPassword)
                </div>
                <div>
                    @Html.PasswordFor(m => m.OldPassword, new { @class = "k-textbox" })
                    @Html.ValidationMessageFor(m => m.OldPassword)
                </div>

                <div>
                    @Html.LabelFor(m => m.NewPassword)
                </div>
                <div>
                    @Html.PasswordFor(m => m.NewPassword, new { @class = "k-textbox" })
                    @Html.ValidationMessageFor(m => m.NewPassword)
                </div>
                        

                <div>
                    @Html.LabelFor(m => m.ConfirmPassword)
                </div>
                <div>
                    @Html.PasswordFor(m => m.ConfirmPassword, new { @class = "k-textbox" })
                    @Html.ValidationMessageFor(m => m.ConfirmPassword)
                </div>

                <div>
                    <button class="k-button">
                        <span class="k-icon k-i-tick"></span>
                        <span>Submit</span>
                    </button>
                </div>
            </div>
        </fieldset>
    </section>
}
